/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 *
 * @author Tadeu Augusto
 */
@Entity
@Table(name = "pais")
public class Pais implements Serializable {

    @Id
    @SequenceGenerator(name = "PAIS_SEQ", sequenceName = "PAIS_SQ", initialValue = 1)
    @GeneratedValue(generator = "PAIS_SEQ", strategy = GenerationType.SEQUENCE)
    @Column(name = "id_pais")
    private long idPais;
    
    @Column(name = "nome_pais")
    private String nomePais;

    public Pais(){
        
    }

    public long getIdPais() {
        return idPais;
    }

    public void setIdPais(long idPais) {
        this.idPais = idPais;
    }

    public String getNomePais() {
        return nomePais;
    }

    public void setNomePais(String nomePais) {
        this.nomePais = nomePais;
    }
    
}
